package com.zh.elec.service.impl;

import java.util.List;

import com.zh.elec.dao.DealerDao;
import com.zh.elec.model.Dealer;
import com.zh.elec.service.DealerService;

/**
 * 经销商
 * @author scy
 *
 */
public class DealerServiceImpl implements DealerService {

	private DealerDao dealerDao;
	@Override
	public Object save(Dealer obj) {
		return dealerDao.save(obj);
	}

	@Override
	public Object update(Dealer obj) {
		return dealerDao.update(obj);
	}

	@Override
	public Object getObjById(Dealer obj) {
		return dealerDao.getObjById(obj);
	}

	@Override
	public Object del(Dealer obj) {
		return dealerDao.del(obj);
	}

	@Override
	public List<Dealer> find(String hql) {
		return dealerDao.findByHql(hql);
	}

	@Override
	public List<Dealer> findByName(String name, Object value) {
		return dealerDao.findByName(name, value);
	}
	@Override
	public List<Dealer> findAll() {
		return dealerDao.findAll();
	}
	public DealerDao getDealerDao() {
		return dealerDao;
	}

	public void setDealerDao(DealerDao dealerDao) {
		this.dealerDao = dealerDao;
	}
}
